package com.example.analysis.mapper;

import com.example.analysis.domain.ScoreInfo;
import com.example.analysis.entity.Class;
import com.example.analysis.entity.Election;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ElectionDao {

    int insert(Election record);

    Election selectByPrimaryKey(@Param("subId") String subId, @Param("studentId") String studentId);

    Election selectByName(String className);

    List<ScoreInfo> getAll();

    List<ScoreInfo> getCourse(String semester);
    List<Class> getByClassId(String subId);

    List<ScoreInfo> getSelectAll(@Param("selectCourseId") String selectCourseId, @Param("selectClassId")String selectClassId);

    List<ScoreInfo> getList(ScoreInfo scoreInfo);
}
